package com.enwayouli.mapper;

import com.enwayouli.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface BlogMapper {
    int addBlog(Blog blog);
    List<Blog> queryAll();
    List<Blog> blogFilter(Map map);
    int getNum();
    int addView(int mid);
    List<Blog> getTop5Blog();
}
